#include <bits/stdc++.h>

using namespace std;

const int N = 1e5 + 10;

int main()
{
   int r , c;
   cin >> r >> c;
   if(c == 1){
    if(r >= 1600 && r <= 2999) cout <<"Yes";
    else cout <<"No";
   }else {
    if(r >= 1200 && r <= 2399) cout <<"Yes";
    else cout <<"No";
   }
   return 0;
}
